package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.entity.User;
import com.itheima.reggie.mapper.UserMapper;
import com.itheima.reggie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService{

    @Autowired
    private UserMapper mapper;
    @Override
    public Map<String, Object> user() {
        return mapper.user();
    }

    @Override
    public Integer sumUser() {
        return mapper.sumUser();
    }

    @Override
    public Map<String, Object> dayUser() {
        return mapper.dayUser();
    }

    @Override
    public List<Map<String, Object>> dayWeekUser() {
        return mapper.dayWeekUser();
    }

    @Override
    public List<Map<String, Object>> dayMonthUser() {
        return mapper.dayMonthUser();
    }
}